/**
 * 
 */
package es.ats.codington.festival.domain;

/**
 * @author Codington_RED
 * 
 * POJO CLASS FOR VISITOR
 * SUBLCASS OF THE SUPERCLASS PEOPLE.
 *
 */
public class Visitor extends People{

	/**
	 * Attributes member of the Visitor class
	 */
	private int visitorId;
    private String userName;
    private String password; 
    private boolean admin; 
    
    /**
	 * Empty Constructor Visitor, default.
	 * Instance a empty Visitor.
	 */
    public Visitor(){
    	
    }
    

    /**
     * Method Visitor constructor.
	 * Create an object with the attributes member.
	 * 
     * @param visitorId
     * @param userName
     * @param password
     * @param admin
     */
    public Visitor(int visitorId, String userName, String password,
			boolean admin) {
		super();
		this.visitorId = visitorId;
		this.userName = userName;
		this.password = password;
		this.admin = admin;
	}


	/**
     * Return Visitor Id
     * @return visitorId
     */
	public int getVisitorId() {
		return visitorId;
	}

	/**
	 * Modify Visitor Id
	 * @param visitorId
	 */
	public void setVisitorId(int visitorId) {
		this.visitorId = visitorId;
	}

	/**
	 * Return Visitor user name
	 * @return userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * Modify Visitor user name
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * Return Visitor password
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Modify Visitor password
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Return Visitor is admin
	 * @return admin
	 */
	public boolean isAdmin() {
		return admin;
	}

	/**
	 * Modify Visitor admin
	 * @param admin
	 */
	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
    
    
}
